package com.handyshop.mall.dubbo.commodity.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.handyshop.mall.dubbo.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@ApiModel(value = "商品集合关联表")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "nrs_goods_collections_index")
public class GoodsCollectionsIndex extends BaseEntity {
    /**
     * 集合ID
     */
    @TableField(value = "collection_id")
    @ApiModelProperty(value = "集合ID")
    private Long collectionId;

    /**
     * 商品ID
     */
    @TableField(value = "goods_id")
    @ApiModelProperty(value = "商品ID")
    private Long goodsId;

    /**
     * 权重(从大到小)
     */
    @TableField(value = "sort")
    @ApiModelProperty(value = "权重(从大到小)")
    private Integer sort;

    public static final String COL_ID = "id";

    public static final String COL_COLLECTION_ID = "collection_id";

    public static final String COL_GOODS_ID = "goods_id";

    public static final String COL_SORT = "sort";

    public static final String COL_DELETE_FLAG = "delete_flag";

    public static final String COL_CREATOR_ID = "creator_id";

    public static final String COL_CREATOR = "creator";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_MODIFY_TIME = "modify_time";
}